package com.jy.api.util;

import java.math.BigDecimal;

public class NumUtil {







    public static BigDecimal sum(double...bigDecimals){
        BigDecimal bigDecimal =BigDecimal.ZERO;
        bigDecimal.setScale(2,BigDecimal.ROUND_HALF_UP);
        for (Double decimal : bigDecimals) {
            bigDecimal =bigDecimal.add(BigDecimal.valueOf(decimal));
        }
        return bigDecimal;
    }




















}
